@import '@/app/styles/variables';

.snack {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  gap: 12px;
  font-weight: 400;
  font-style: normal;
  user-select: none;
  text-align: center;
  color: var(--simple-night, #000);
  margin-top: 23px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
  background: var(--simple-morning, #fff);
  // position: absolute;
  // z-index: 2000;
  // left: 50%;
  // top: 20%
}

.sm {
  padding: 15px 24px;
  font-size: 16px;
  line-height: 22px;
  /* 137.5% */
}

.md {
  padding: 26px 48px 28px 48px;
  font-size: 20px;
  line-height: 26px;
  /* 130% */
}

.error {
  color: var(--simple-red-day, #000000);
}

.success {
  color: black;
}

@include media(sm) {
  .snack {
    position: absolute;
    margin-left: 40px;
    margin-top: 40px;
    display: inline-flex;
    padding: 16px 24px;
    align-items: center;
    gap: 8px;
    border-radius: 100px;
    background: var(--Simple-Morning, #fff);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;

    svg {
      transform: scale(0.75);
    }
  }
}

@include media(xs) {
  .snack {
    margin-left: 20px;
    margin-top: 20px;
  }
}

@include media(xsg) {
  .snack {
    margin: 0;
    left: 50% !important;
    transform: translateX(-50%);
    position: fixed;
    top: 20px;
    min-width: 190px;
    max-height: 52px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
